The online racing simulator
Searching in All forums
(374 results)
Tim NL
S2 licensed
Quote from Yisc[NL] :Yes that's possible. See attached code which stores the username along with some values when a player connects to the server.


### Add UserName to $user_array together with $number_of_stops ###
FOR ($i=1;$i<=32;$i=$i+1)
IF ($user_array[$i,1] == "")
THEN
$user_array[$i,1] = GetCurrentPlayerVar( "UserName" );
$user_array[$i,2] = $number_of_stops_w1;
$user_array[$i,3] = $number_of_stops_w2;
$user_array[$i,4] = $number_of_stops_w3;
BREAK;
ENDIF
ENDFOR
### End ###


Thanks, thats super ( cant hardly wait to see the new version lol ) Good work
Tim NL
S2 licensed
@Gai-Luron or Yisc

Is it posible in the new version of lapper to create array's and use FOR-NEXT in the config script's?

Example something like :

For n = 0 To 24
IF( $Player(n) == "" )
THEN
Do something
ENDIF
Next n

Tim NL
S2 licensed
Quote from Yisc[NL] :The Pitboard is a tool for players to compare times, splits etc. with them selfs or the competitor in front/behind them and has nothing to do with admins at all.

Yep +1 Good work Yisc
Tim NL
S2 licensed
Hi,

This one is working on my test server. i added the missing + that Blackknight555 noticed and there was a space missing too in the GoodDriftAction() part.

#================#
#Drifting options#
#================#

$DriftDatabase = "./DriftPB.txt";

Event DriftPBAction()
cmdLFS( "/rcm " . $Nickname . "^3 made new PB: ^7" . $DriftScore . " ^3pts!" );
cmdLFS( "/rcm_all" );
EndEvent

Event DriftPBAction()
cmdLFS( "/msg " . $Nickname . "^3 made new PB: ^7" . $DriftScore . " ^3pts!" );
EndEvent

Event DriftLapAction()
cmdLFS("/msg " . $Nickname . " ^3drifted to ^7" . $DriftScore . " ^3pts" );
EndEvent

Event OnDriftScore()
privMsg( "Score: ^7" . $DriftScore . " ^3+" . $LastDriftScore );
EndEvent

$GoodDriftScore = 2500; # Value to be reached to execute action on good drift score
####### you can change the 4000 to anything you want - higher or lower number to suit


Event GoodDriftAction()
privMsg( $Nickname . " ^3made excellent drift: ^7" . $LastDriftScore . " ^3pts" );
EndEvent


$MinimumDriftScore = 10; # Minimum drift score required
####### you can change the 250 to anything you want - higher or lower number to suit

# Actions to do at end of lap if MinimumDriftScore is not achieved.
Event DriftTooLowAction()
privMsg( $Nickname . "^3 disqualified" );

cmdLFS( "/spec " . $Nickname };
EndEvent

$MinimumDriftSpeed =20; # Minimum speed in km/h to maintain. Driving below that speed will reset score
$MinimumDriftAngle =15; # Minimum angel to maintain. When angle is below value, score is reset
$MaximumDriftAngle =100; # Maximum angel to maintain. When angle is above value, score is reset

Tim NL
S2 licensed
Quote from Termi :It Runs on Windows Server 2003 64bit. I dont think it is the Memory...

Hi,

I run Windows Server 2003 64bit with 6 times dedi plus lapper and have no problemes.
Tim NL
S2 licensed
Quote from plasic :
I prayed for someone to upload the entire folder data.
Z ORIGINAL version


Hi ,

Download a new copy of LFS from www.lfs.net and use the new data folder.
Tim NL
S2 licensed
Quote from bunder9999 :
$Players -> Number of player that can vote ( player on track )

i haven't tried it in any code, but does that only apply to votes? i'd like to use the variable somewhere else, mainly to change $InRaceLapsVoteMinMax if the number of in-game racers is 1.

thanks

Hi,

$Players -> Number of player that can vote ( player on track )

You can also use this var to check how many players are on track (or have a race slot) i didn't test it yet because i had a little ski accident last week ( broke my shoulder so i cant drive )
Tim NL
S2 licensed
Quote from Zarmaka :Well, i'm running a server online with LFSLapper, Driftscore and all works! But there is a problem that on the first turn after pit (demo map) the score resets, EVENTHOUGH you do a perfect corner.

Hi,

This is normal , every lap a new score , you can type !drf to see the score list or !help to see all command's.
Tim NL
S2 licensed
Quote from fireb0llch :so in the new Version, theres possiblity to restrict Qualy Laps? And after reaching the 10 Laps for example, no more time will be recorded anymore?

Greetings,
Xcite | Fireball

Hi,
You can spectate a player when he drove more then 10 lap's and set a var so he cant leave the pit again.
It's posible to create but it's a lot of work ( i dont have the time the next 2 week's , First i going to skiing :razz.
Tim NL
S2 licensed
Quote from Yisc[NL] :This one is already in the new version:

Event QualStartAction()
EndEvent

Coool Thanks
Tim NL
S2 licensed
Hi,
@Yisc or Gai-luron

Is it posible in the new lapper version to have a event like the

Event RaceStartAction()
cmdLFS( "/rcm ^3Please, brake in time!" );
cmdLFS( "/rcm_all" );
EndEvent

Some new event's when a qual is starting and when a race and qual is ended.
Then its easyer to make thing's like the Question of Xcite | Fireball ( see above ) and gives a lot of posibleties.

Example:
Event RaceEndAction()
EndEvent

Event QualStartAction()
EndEvent

Event QualEndAction()
EndEvent
Last edited by Tim NL, .
Tim NL
S2 licensed
Quote from fat-oil :Hi

It seems i cant have !kick command to work on a demo server.

Register MsgAction("!kick",MA_kick);
Sub MA_kick()
$allow = "fat-oil, people1, people2";
cmdLFS("/kick " . $argv );
cmdLFS("/msg " . $argv . " ^7has been kicked by ". $Nickname );
EndSub

This is not working when using right click on target name (the person to kick) to get it in the command line, which is the standard procedure to kick spec and ban.
The /msg line still works fine, writing correct names (nicknames).
To get !kick to work, one has to manually enter username (and not nickname) in lfs command line, the problem is there is no way to get usernames for the lfs screen, the only clue happens when people connect, at this moment, username is displayed after nickname inside parenthesis.

The !spec command works fine, maybe lfs dont needs username on this one. But i bet !ban aint working too.

Do i miss something ?

Thanx for your advices.

edit:
i run lapper 5.7.1.5

Hi.
If you'r logged in as a admin then you can not kick or ban your self.
Or press shift-ctrl to see the usernames in the connectionbox and rightclick it .
Tim NL
S2 licensed
Quote from JasonJ :Wow that's cool runnings. What do you use to control the restrictions?

Hi,
I use LFSLapper to control the restrictions
Tim NL
S2 licensed
Quote from kamo2000 :Tim
It works but i had to chenge something else taht you didn't mentioned

In tracklist.txt:


Split1Action = TRI_split1_0:TRI_split1_1
Split2Action = TRI_split2_0:TRI_split2_1
Split3Action = TRI_split3_0:TRI_split3_1
LapTimeAction = TRI_lap_0:TRI_lap_1

Should be:

Split1Action = TRI_split1_0:TRI_split1_1:TRI_split1_2
Split2Action = TRI_split2_0:TRI_split2_1:TRI_split2_2
Split3Action = TRI_split3_0:TRI_split3_1:TRI_split3_2
LapTimeAction = TRI_lap_0:TRI_lap_1:TRI_lap_2

And now it works.. I'll check later if it works with 4 levels.


Thx

:doh: missed that part lol
Tim NL
S2 licensed
Quote from obsolum :Hmm, that might be a fun idea I won't be able to join this weekend though. Is it a dedicated server, or are you running it from your own pc?

Hi,
It's a dedicated server with a 4Mb DSL (4Mb up and 4Mb down)
24/7 up and running
Tim NL
S2 licensed
Quote from Yisc[NL] :I recently started a test-server to test stability of new Lapper (still beta) and the code for my new Pitboard (work in progress).

Server name: Lapper[test]
Password: testing
Track: AS2
Cars: XFR+XRR+FZR
Laps: 10
Pitwindow: L3 - L6

Please test as much as you can and report problems, wishes etc. in this topic.

Hi Yisc,
I did some testing on your test server.

Race 1 pitstop in lap 5 , everything OK and look's very nice.

Race 2 pitstop in lap 1 , everything still OK , number of stop's stay on 1 (that's OK)
pitstop in lap 8 , No penalty for to late stop ( something like a 45sec. penalty after making the stop)

Race 3 maked no pitstop , was not disqualified at end of the race ( drive through penalty when entering the last lap wil disqualify you )

Overall the pitboard look's very good , maybe a seperate button to show if pitlane is open or closed.
Tim NL
S2 licensed
Quote from FiveMagics :Does the car filter in multiplayer balance the cars in an even manner in terms of possible lap times? For example, group filter LRF has the LX6 and the raceabout, in spite of the very different handling are they both capable of similar lap times? Has anybody made a list of all the cars in comparable groups? Another example would be the FWD filter, those cars are all (I assume) front wheel drive but when racing together they would create a very unbalanced field. I suspect the grouping would be different for track racing than it would for rallycross which would necessitate the need for more than one list, but if anybody has any suggestions I'd be very grateful.
I'm quite certain that most could kick my arse regardless of the chosen cars but still...

Hi,

I created one's a server with seven different car's , some without handicap's and other with handicap's. (It's maybe not perfect and some handicap's can be changed.)
It's running now on [NLR]NL Racing #6.

All car's have +/- 152 w/kg and use no slick's (only road tyres)
The TBO Class (RB4 FXO XRT) no restiction.
RACE ABOUT (RAC) 28% intake and 10Kg.
FZ50 (FZ5) 14% intake and 10Kg.
LX4 (LX4) 19% intake and 12Kg.
LX6 (LX6) 30% intake and 20Kg.

The track's will rotate after 2 race's.
Track's in use are AS1R,SO1R,FE2R.

If there are beter idea's or suggestions I'd be very grateful to.
Tim NL
S2 licensed
Quote from kamo2000 :I tried with more than 2 levels and failed. That's why i asked.

Hi, try this code in lapper
And change the ConvWr.bat from the trackinfo1.2 tool to make a trackinfo.cfg.

ConvWr.exe -i your_idk_here -o trackInfo.cfg -c 100.5:101.5:102.5 -mlc 200


####################################################
#Actions to do on splits relative to trackinfo.cfg#
####################################################
#Local variable: {SplitTime} - Split time
#-------------------------------------------------------------------
Sub TRI_split1_0()
cmdLFS( "/msg Amazing 1st split (" . $SplitTime . ") by " . $Nickname . "^8!" );
EndSub
Sub TRI_split1_1()
cmdLFS( "/msg Great 1st split (" . $SplitTime . ") by " . $Nickname . "^8!" );
EndSub
Sub TRI_split1_2()
cmdLFS( "/msg Good 1st split (" . $SplitTime . ") by " . $Nickname . "^8!" );
EndSub
Sub TRI_split2_0()
cmdLFS( "/msg Amazing 2nd split (" . $SplitTime . ") by " . $Nickname . "^8!" );
EndSub
Sub TRI_split2_1()
cmdLFS( "/msg Great 2nd split (" . $SplitTime . ") by " . $Nickname . "^8!" );
EndSub
Sub TRI_split2_2()
cmdLFS( "/msg Good 2nd split (" . $SplitTime . ") by " . $Nickname . "^8!" );
EndSub
Sub TRI_split3_0()
cmdLFS( "/msg Amazing 3rd split (" . $SplitTime . ") by " . $Nickname . "^8!" );
EndSub
Sub TRI_split3_1()
cmdLFS( "/msg Great 3rd split (" . $SplitTime . ") by " . $Nickname . "^8!" );
EndSub
Sub TRI_split3_2()
cmdLFS( "/msg Good 3rd split (" . $SplitTime . ") by " . $Nickname . "^8!" );
EndSub
Sub TRI_lap_0()
cmdLFS( "/msg Amazing lap (" . $LapTime . ") by " . $Nickname . "^8!" );
EndSub
Sub TRI_lap_1()
cmdLFS( "/msg Great lap (" . $LapTime . ") by " . $Nickname . "^8!" );
EndSub
Sub TRI_lap_2()
cmdLFS( "/msg Good lap (" . $LapTime . ") by " . $Nickname . "^8!" );
EndSub

Tim NL
S2 licensed
Quote from Sil3nc3r- :General Question:

Should the Pb.txt being recognized by the lapper if i copy/paste the text inside it from former generated best driven times and splits from pb.txt?

Sil

Hi,
No problem , you have to remove the line USERNAME 02 from the pb number 2 file that you past at the bottom of pb number 1 file.
You only need one USERNAME 02 on top of the pb.txt


[COLOR=red]USERNAME 02[/COLOR]
tim nl
^7[^1N^7L^4R^7]^6Tim
1
25/12/2008
01:35
UFR
1.14.75
SO6
0.34.82
0.00.00
0.00.00
0.32.37
0.00.00
0.00.00
0.39.93

Tim NL
S2 licensed
Quote from sinanju :
Register MsgAction("!othercombo",MA_othercombo);
Sub MA_othercombo()
cmdLFS("/ws AS6 XRT pb" );
EndSub

I get nothing.

Is there another line or expression I need to add to get it to output the pb onto the screen?

Hi,
/w comand's work's only if you use the client ( lfs the game ) and not for the dedi server. It's lapper that send the cmdLFS("/ws AS6 XRT pb" ); and not the player who want's to see it.

And lapper can't show you the pb's from a other track. ( it should be nice if this is posible , i hope maybe in a future version )


EDIT: USAGE: /w CMD [name] | CMD = pb,hl,wr,l,tl,ds,f,1,2,3,fin
You can try cmdLFS("/ws AS6 XRT pb " . $Username );
It work's when i type it
Last edited by Tim NL, .
Tim NL
S2 licensed
Quote from nesrulz :I have conflict with DEDI.

When I join on server as an administrator (with admin pass), I can vote to kick and ban over the list of drivers, and if I join as a guest (without admin pass) options for vote are not available.


Hi,

You can use this in lapper to overrule the /vote no from lapper

########################
#Event triggered when lapper start#
########################
Event OnLapperStart()
cmdLFS( "/vote yes" );
EndEvent
Tim NL
S2 licensed
Quote from Trekkerfahrer :is it possible to declare a new race lenght if track rotates?
i have set 7 laps now in my config for SO4 with GTRs.... but 7 laps on FE4 is a bit too much.

thx 4 help

Hi,
Its posible to use a var for the numbers of lap's and set that var with a kind of a gui. see the one from yisc or me above. Need some changes to set track rotation ( i think i make that in future )

Edit: yisc was faster (and that is a beter option to) lol
Last edited by Tim NL, .
Tim NL
S2 licensed
Quote from Yisc[NL] :Last couple of weeks I was busy developing a new Admin-GUI since the old one (never released to the public) wasn't sufficient enough.

Hi,
Here mine gui. lol (works almost fine , only a small bug with the reverse tracks ).

I have a small question to. Is it posible to set a time race lesser then 1 hour? I can do /hours 1 for a 1 hour race but is it posible to set up a race for 30 or 15 min.?
Tim NL
S2 licensed
Quote from sh0rtyto :In what sections must I delete those things?
In some file or what? I just didn't understood you
and before what codes must I do this?
please explain me !
Thank you !

Hi,

All the part's between /* and */ and all the line's start with a # in the script don't work .
If you remove the /* and the */ the part between will work then ( after a restart of lapper) .
So for drift point you can use the next code ( i allready removed the /* and */ )


##################
#Drifting options#
##################
# This is the filepath for a file containing the collected data.
# This file will be created if it doesnt exist yet.
# You must ensure read/write access to this path.
#-------------------------------------------------------------------
$DriftDatabase = "./DriftPB";
# Actions to do on new personal best drift lap.
Event DriftPBAction()
cmdLFS( "/msg " . $Nickname . "^3 made new PB: ^7" . $DriftScore . " ^3pts!" );
EndEvent
# Actions to do to when total lap drift score is higher or equal to MinimumDriftScore.
Event DriftLapAction()
cmdLFS("/msg " . $Nickname . " ^3drifted to ^7" . $DriftScore . " ^3pts" );
EndEvent
# Message to get on end of each drift.
# Possible variables to use:
Event OnDriftScore()
privMsg( "Score: ^7" . $DriftScore . " ^3" . $LastDriftScore );
EndEvent
$GoodDriftScore = 4000; # Value to be reached to execute action on good drift score
Event GoodDriftAction()
privMsg( $Nickname . " ^3made excellent drift: ^7" . $LastDriftScore ." ^3pts" );
EndEvent
$MinimumDriftScore = 10; # Minimum drift score required
# Actions to do at end of lap if MinimumDriftScore is not achieved.
/*
Event DriftTooLowAction()
privMsg( $Nickname . "^3 disqualified" );
cmdLFS( "/spec " . $Nickname };
EndEvent
*/
$MinimumDriftSpeed = 50; # Minimum speed in km/h to maintain. Driving below that speed will reset score
$MinimumDriftAngle = 15; # Minimum angel to maintain. When angle is below value, score is reset
$MaximumDriftAngle = 100; # Maximum angel to maintain. When angle is above value, score is reset

Tim NL
S2 licensed
Quote from sh0rtyto :I tried it it connects and at the end it says
".....\LFSLapper5.716\bin>pause
Press any key to continue . . ."
and whatever key I press it just closes the window :
BTW:Thank you for the fast answer
hope you help me again !

Hi,
You have to edit the LFSLapper.lpr in /cfg dir. ( port number must the same as in Dedi sever and Admin password of the Dedi server.
Or start a host fill in the adminPwd and type when is running /insim=29999 ( have to login as admin) . see also page 1 of this thread

#################
#General options#
#################
$Host = 127.0.0.1; # Host IP. When more network interfaces are present, set it to IP of your host.
$Port = 29999; # Insim UDP port. Open this port after starting LFS Server by typing /insim=29999 in chat or include it in config-file LFS Server
$Password = "adminPwd"; # Put in the admin password used on the LFS Server

And run the NETStartDefault.bat in the /Bin dir.
FGED GREDG RDFGDR GSFDG